﻿#region Using directives

using System;
using System.ComponentModel;

#endregion

namespace NetROS.Tiers.Entities
{	
	///<summary>
	/// An object representation of the 'vwPreostaloZaZatvaranje' view. [No description found in the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
	[Serializable]
	[CLSCompliant(true)]
	public partial class VwPreostaloZaZatvaranje : VwPreostaloZaZatvaranjeBase
	{
		#region Constructors

		///<summary>
		/// Creates a new <see cref="VwPreostaloZaZatvaranje"/> instance.
		///</summary>
		public VwPreostaloZaZatvaranje():base(){}	
		
		#endregion

        /// <summary>
        /// 	Gets InfoEntiteta property. 
        ///		
        /// </summary>
        /// <value>This type is nvarchar</value>
        /// <remarks>
        /// This property can be set to null. 
        /// </remarks>
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public virtual String InfoEntiteta
        {
            get {
                string dug = string.Empty;
                String pot = string.Empty;
                if (Dug != 0)
                dug = String.Format("D:{0:N2}    ", Dug);
                if (Pot != 0)
                pot = String.Format("P:{0:N2}    ", Pot);
                //return String.Format("{0}S:{1:N2}  |  DV:{2}    DD:{3}    BD:{4}    N:{5}    VK:{6}    Po:{7}"
                //,dug+pot, Preostalo, DatumDospijeca.HasValue ? DatumDospijeca.Value.ToShortDateString() : string.Empty,DatumDokumentaOriginal.ToShortDateString(),SifraOriginalnogDokumenta,VrstaDokSifra,Nalog,Poziv);
            return String.Format("VK:{5}    N:{6}    BD:{4}    DD:{3}  DV:{2}    {0}S:{1:N2}    Po:{7}"
            , dug + pot, Preostalo, DatumDospijeca.HasValue ? DatumDospijeca.Value.ToShortDateString() : string.Empty, DatumDokumentaOriginal.ToShortDateString(), SifraOriginalnogDokumenta, VrstaDokSifra, Nalog, Poziv);
                
            }

            
            
        }
	}
}
